package com.gaoding.shared.dict.entity;

import com.gaoding.orm.annotation.IdGenerator;
import com.gaoding.orm.entity.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;


/**
 * 服务表(DictServiceList)实体类
 *
 * @author mobai
 * @since 2021-02-02 09:58:43
 */
@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Table(name = "dict_service")
@IdGenerator
@SQLDelete(sql = "update dict_service set status=0 where id=?")
@Where(clause = "status=1")
public class DictService extends BaseEntity implements Serializable {
    private static final long serialVersionUID = -99434477385574483L;


    /**
     * 服务编码
     */

    private String serviceCode;


    /**
     * 服务名称说明
     */

    private String serviceName;


    /**
     * 状态
     * 1： 有效
     * 0： 无效
     */

    private Integer status;


}